package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description OrderDetailMapper
 * @Author zhuzi
 * @Date 2023/10/05
 */
@Mapper
public interface OrderDetailMapper {

    /**
     * 新增订单明细
     *
     * @param orderDetails List
     */
    void insertOrderDetails(List<OrderDetail> orderDetails);

    /**
     * 根据订单id获取订单明细列表
     *
     * @param orderId Long
     * @return List
     */
    List<OrderDetail> getOrderDetailListByOrderId(Long orderId);

}
